package com.aiyige.page.globalsearch.event;

public class EventGlobalSearch {
    public static final int TYPE_DO_SEARCH = 1;
    int type;

    private EventGlobalSearch(Builder builder) {
        setType(builder.type);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public static final class Builder {
        private int type;

        private Builder() {
            type = TYPE_DO_SEARCH;
        }

        public Builder type(int val) {
            type = val;
            return this;
        }

        public EventGlobalSearch build() {
            return new EventGlobalSearch(this);
        }
    }
}
